import service from '@/utils/request'

// @Tags XyoaUser
// @Summary 创建oa用户
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.XyoaUser true "创建oa用户"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /xyoaUser/createXyoaUser [post]
export const createXyoaUser = (data) => {
  return service({
    url: '/xyoaUser/createXyoaUser',
    method: 'post',
    data
  })
}

// @Tags XyoaUser
// @Summary 删除oa用户
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.XyoaUser true "删除oa用户"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /xyoaUser/deleteXyoaUser [delete]
export const deleteXyoaUser = (params) => {
  return service({
    url: '/xyoaUser/deleteXyoaUser',
    method: 'delete',
    params
  })
}

// @Tags XyoaUser
// @Summary 批量删除oa用户
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除oa用户"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /xyoaUser/deleteXyoaUser [delete]
export const deleteXyoaUserByIds = (params) => {
  return service({
    url: '/xyoaUser/deleteXyoaUserByIds',
    method: 'delete',
    params
  })
}

// @Tags XyoaUser
// @Summary 更新oa用户
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.XyoaUser true "更新oa用户"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /xyoaUser/updateXyoaUser [put]
export const updateXyoaUser = (data) => {
  return service({
    url: '/xyoaUser/updateXyoaUser',
    method: 'put',
    data
  })
}

// @Tags XyoaUser
// @Summary 用id查询oa用户
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.XyoaUser true "用id查询oa用户"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /xyoaUser/findXyoaUser [get]
export const findXyoaUser = (params) => {
  return service({
    url: '/xyoaUser/findXyoaUser',
    method: 'get',
    params
  })
}

// @Tags XyoaUser
// @Summary 分页获取oa用户列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取oa用户列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /xyoaUser/getXyoaUserList [get]
export const getXyoaUserList = (params) => {
  return service({
    url: '/xyoaUser/getXyoaUserList',
    method: 'get',
    params
  })
}

// @Tags XyoaUser
// @Summary 批量同步OA用户
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "批量同步OA用户"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /xyoaUser/syncOaUserBatch [get]
export const syncOaUserBatch = (params) => {
  return service({
    url: '/xyoaUser/syncOaUserBatch',
    method: 'get',
    params
  })
}

